package com.hzdl.hotel.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@ToString
@AllArgsConstructor
@NoArgsConstructor
public class GuestRoom implements Serializable {
    private Integer hId;
    private String hotelType;
    private BigDecimal price;
    private String hotelImg;
    private Integer ifRenting;
    @JsonFormat(pattern="yyyy/MM/dd hh:mm:ss",timezone = "GMT+8",locale = "zh")
    private Date createtime;
    private String description;

    public Integer gethId() {
        return hId;
    }

    public void sethId(Integer hId) {
        this.hId = hId;
    }

    public String getHotelType() {
        return hotelType;
    }

    public void setHotelType(String hotelType) {
        this.hotelType = hotelType;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getHotelImg() {
        return hotelImg;
    }

    public void setHotelImg(String hotelImg) {
        this.hotelImg = hotelImg;
    }

    public Integer getIfRenting() {
        return ifRenting;
    }

    public void setIfRenting(Integer ifRenting) {
        this.ifRenting = ifRenting;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
